﻿using Domain.Models;
using Extensions.Attributes;
using IServices.Base;
using System.Collections.Generic;
using ViewModel.Auth;

namespace IServices
{
    public interface IAccountService : IBaseService<Account>
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        bool Login(string username, string password);
        /// <summary>
        /// 用户认证
        /// </summary>
        /// <param name="authModel">认证模型</param>
        /// <returns></returns>
        bool Login(AuthModel authModel);
        /// <summary>
        /// 获取所有账户
        /// </summary>
        /// <returns></returns>
        IEnumerable<ViewModel.AccountModel.Account> GetAccounts();

    }
}
